<%--
  Created by IntelliJ IDEA.
  User: Lpbdz
  Date: 2017/4/9
  Time: 15:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">
        function register() {
            var form =document.forms[0];
            form.action="loginAction!register";
            form.submit();
        }

    </script>
</head>
<body>
<!--
    <s:form action="selectionAction!showSelectionInfo">
        <s:textfield  name="stuid"  label="学号"></s:textfield><br>
        <s:textfield  name="courseid" label="课程id"></s:textfield><br>
        <s:submit value="提交"></s:submit>
    </s:form>
     <div align="center">
        <form name="form1" action="loginAction!login" method="post">
            用户名：<input type="text" name="username"><br>
            密码:<input type="password" name="password"><br>
            <input type="submit" value="登陆">
            <input type="button" value="注册" onclick="register()">
        </form>
    </div>
     <a href="LoginAction!listOne.action?username=${123}&password=${123}">添加</a>
-->
    <div align="center">
        <s:form action="selectionAction!showSelectionInfo" method="post" name="form1">
            <s:textfield  name="stuid"  label="学号"></s:textfield><br>
            <s:textfield  name="courseid" label="课程id"></s:textfield><br>
            <s:submit value="提交"></s:submit>
        </s:form>
    </div>
<button onclick="location. href='selectionAction!showSelectionInfo.action?stuid=${'2011001001'}'">添加</button>>
</body>
</html>
